package com.computergames.server.service.Interface;

import com.computergames.server.domain.ClientState;
import io.netty.channel.*;
import org.springframework.stereotype.Service;

@Service
public interface CheckAndUpdateClientState {
    boolean checkState(ChannelHandlerContext ctx, ClientState requiredState);
    void updateState(Channel channel, ClientState newState);
    void removeState(Channel channel);
    ClientState getState(Channel channel);
}
